<?php
echo $header;
echo $sidebar
?>		
<div class="span10 content">
    <?php echo $hugemenu ?>

    <h1><?php echo lang('media_custom_page_title'); ?></h1>
    <?php if ($this->session->flashdata('message')) { ?>
        <div class="alert alert-success">
            <?php echo $this->session->flashdata('message') ?>
        </div>
    <?php } ?>
    <div>
        <div class="widget">
            <div class="widget-head">
                <h3 class="heading"><?php echo lang('media_custom_head_title')?></h3>
            </div>
            <div class="widget-body">
                <div class="control-group mediapanel">
                    <div class="thumb">
                        <?php foreach ($files as $file) { ?>
                        <a href="<?php echo site_url() . 'uploadify/delete_file/' . urlencode(basename($file)) ?>" target="_blank" data-cc="confirm" class="deletelink"><img src="<?php echo base_url() . '/uploads/thumbs/' . basename($file) ?>"></a>
                        <?php } ?>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <?php echo $pagination ?>

</div><!--/content-->

<?php echo $footer ?>